You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.Mag Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.Mag Method

Magnitude.

Syntax
C#
Visual Basic
public TOpenCLValue Mag([In] TOpenCLValue X);

Calculate the magnitude of X. This method has the same function as the Abs method.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLValue a,b; clMtxVec.CreateIt(out a, out b); try { b.Copy(Cplx(2,3)); a.Mag(b); } finally { clMtxVec.FreeIt(ref a, ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!